import request from '@/utils/request'

// 查询城市投票列表
export function listCityVote(query) {
  return request({
    url: '/cityVote/cityVote/list',
    method: 'get',
    params: query
  })
}

// 查询城市投票详细
export function getCityVote(id) {
  return request({
    url: '/cityVote/cityVote/' + id,
    method: 'get'
  })
}

// 新增城市投票
export function addCityVote(data) {
  return request({
    url: '/cityVote/cityVote',
    method: 'post',
    data: data
  })
}

// 修改城市投票
export function updateCityVote(data) {
  return request({
    url: '/cityVote/cityVote',
    method: 'put',
    data: data
  })
}

// 删除城市投票
export function delCityVote(id) {
  return request({
    url: '/cityVote/cityVote/' + id,
    method: 'delete'
  })
}
